package org.itstack.demo.design;

import java.util.Date;

/**
 * @Author: fanYuLe
 * @CreateTime: 2023-12-25  15:15
 * @Description:
 */
public class ActivityController {

    public Activity queryActivityInfo(Long id){
        //模拟实际业务应用从接口中获取活动信息
        Activity activity = new Activity();
        activity.setId(10001L);
        activity.setName("图书嗨乐");
        activity.setDesc("图书优惠全分享激励分享活动第二期");
        activity.setStartTime(new Date());
        activity.setStopTime(new Date());
        activity.setStock(new Stock(1000,1));
        return activity;
    }
}
